package com.yanu.trace.t2s.controller;


import com.yanu.trace.t2s.entity.Emp;
import com.yanu.trace.t2s.entity.MyEmp;
import com.yanu.trace.t2s.service.EmpService;
import com.yanu.trace.t2s.service.MyEmpService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;
@CrossOrigin // 跨越请求注解
@RestController
@RequestMapping("/myemp")
public class MyEmpController {
    @Autowired
    MyEmpService myEmpService;
    @GetMapping("f1/{empno}")
    public MyEmp f1(@PathVariable int empno){
        return  myEmpService.findByEmpno(empno);
    }



}
